<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"> 
  <head> 
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> 
    <title>Google Maps API Example: Simple Geocoding</title> 
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAA9N7ZgI7iRfg1ef5wnMehwRRHIZ64MQDS_PgfLYruevxWF5hHaxSR5O8sCmzo1VF6Jo25Txzo3miAig" type="text/javascript"></script>
		<script type="text/javascript"> 
 
    var map = null;
    var geocoder = null;
 
    function initialize() 
    {
      if (GBrowserIsCompatible()) 
      {
        map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(-23.9645, -46.3233), 15);
        map.setMapType(G_NORMAL_MAP);
        map.addControl(new GHierarchicalMapTypeControl());
        map.addControl(new GLargeMapControl());
        map.addControl(new GScaleControl());
        geocoder = new GClientGeocoder();
      }
    }
 
    function showAddress(address) 
    {
      if (geocoder) 
      {
        geocoder.getLatLng(address, function(point) 
        {
          if (!point) 
          {
            alert(address + " not found");
          } 
          else 
          {
            var marker = new GMarker(point);
            map.addOverlay(marker);
            marker.openInfoWindowHtml(address);
          }
        });
      }
    }
    </script> 
  </head>  
  <body onload="initialize()" onunload="GUnload()"> 
    <form name="formMaps"> 
      <p> 
        <input type="text" size="60" name="address" value="rua osvaldo cruz 421 - santos, sp" /> 
        <input type="button" value="Go!" onclick="showAddress(address.value); return false;"/> 
      </p> 
      <div id="map_canvas" style="width: 1024px; height: 768px"></div> 
    </form> 
  </body> 
</html>